<input id="input" placeholder="City">
<script>
// Make sure that the placeholder is not in visible mode when a suggested value
// replaces a visible placeholder value
internals.setSuggestedValue(input, 'Springfield');
</script>
<style>
:placeholder-shown {
background-color: red;
}
</style>